/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package cp2004_assignment1;

import java.io.*;

/**
 *
 * @author zhaoyingxi JCU Student Number: 11839209
 */
public class Start {

    /**
     * @param args the command line arguments
     */
    public static void main(String[] args) {
        // TODO code application logic here
        try {
            File myFile = new File("MyItem.txt");
            FileReader fileReader = new FileReader(myFile);
            BufferedReader reader = new BufferedReader(fileReader);

            String line = null;     //Define Variable
            while ((line = reader.readLine()) != null) {    //Read information regarding the currently available inventory from file
                Item k = new Item();
                //k.getName(r[0]);
                //p.add(k);
                System.out.println("Read information Test!");
            }
            reader.close();
        } catch (Exception ex) {
        }

        Item s1 = new Item("Board", "Test", 99);
        Item s2 = new Item();
        Item s3 = new Item("Mouse", "This is a point machine", 99);
        System.out.println("Welcome to enter our software of computer and relational items.");
        System.out.println("For example:(List Products and Inventories)");
        Item s4 = new Item();
        System.out.println(s1);
        System.out.println(s2);
        System.out.println(s3);
        System.out.println(s4);

        System.out.println("\nThis is a menu.");
        MainUI ul = new MainUI();
        ul.run();

        System.out.println(s4);


        //MainUI pl = new MainUI();
        //pl.run();
    }
}
